package sw.model;

import java.util.ArrayList;
import java.util.List;

import lombok.Data;

@Data
public class MThread {
	
	private Integer id;
	private String assetName;//资产名称
	private String depart;//部门
	private String threatName;//威胁类
	private Float frequency;//发生频率
	private List<MWeakness> weaknessList = new ArrayList<MWeakness>();
	
	public MThread(Integer id, String threatName, Float frequency){
		this.id = id;
		this.threatName = threatName;
		this.frequency = frequency;
	}
	public MThread(Integer id, String threatName, Float frequency,
			List<MWeakness> weaknessList) {
		super();
		this.id = id;
		this.threatName = threatName;
		this.frequency = frequency;
		this.weaknessList = weaknessList;
	}
	public MThread(String assetName, String depart, String threatName) {
		super();
		this.assetName = assetName;
		this.depart = depart;
		this.threatName = threatName;
	}
	
	
	
	
}
